

<%@ page import="ecitys.gcs.Estabelecimento" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'estabelecimento.label', default: 'Estabelecimento')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${estabelecimentoInstance}">
            <div class="errors">
                <g:renderErrors bean="${estabelecimentoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="responsavelSefip"><g:message code="estabelecimento.responsavelSefip.label" default="Responsavel Sefip" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'responsavelSefip', 'errors')}">
                                    <g:select name="responsavelSefip.id" from="${ecitys.gcs.ResponsavelSefip.list()}" optionKey="id" value="${estabelecimentoInstance?.responsavelSefip?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="fornecedorFolha"><g:message code="estabelecimento.fornecedorFolha.label" default="Fornecedor Folha" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'fornecedorFolha', 'errors')}">
                                    <g:select name="fornecedorFolha.id" from="${ecitys.gcs.FornecedorFolha.list()}" optionKey="id" value="${estabelecimentoInstance?.fornecedorFolha?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sindicato"><g:message code="estabelecimento.sindicato.label" default="Sindicato" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'sindicato', 'errors')}">
                                    <g:select name="sindicato.id" from="${ecitys.gcs.Sindicato.list()}" optionKey="id" value="${estabelecimentoInstance?.sindicato?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="entidade"><g:message code="estabelecimento.entidade.label" default="Entidade" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'entidade', 'errors')}">
                                    <g:select name="entidade.id" from="${ecitys.commons.Entidade.list()}" optionKey="id" value="${estabelecimentoInstance?.entidade?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nomeDoEstabelecimento"><g:message code="estabelecimento.nomeDoEstabelecimento.label" default="Nome Do Estabelecimento" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'nomeDoEstabelecimento', 'errors')}">
                                    <g:textField name="nomeDoEstabelecimento" maxlength="45" value="${estabelecimentoInstance?.nomeDoEstabelecimento}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cnpjEstabelecimento"><g:message code="estabelecimento.cnpjEstabelecimento.label" default="Cnpj Estabelecimento" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'cnpjEstabelecimento', 'errors')}">
                                    <g:textField name="cnpjEstabelecimento" maxlength="11" value="${estabelecimentoInstance?.cnpjEstabelecimento}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nomeLogradouro"><g:message code="estabelecimento.nomeLogradouro.label" default="Nome Logradouro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'nomeLogradouro', 'errors')}">
                                    <g:textField name="nomeLogradouro" maxlength="30" value="${estabelecimentoInstance?.nomeLogradouro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="numeroLogradouro"><g:message code="estabelecimento.numeroLogradouro.label" default="Numero Logradouro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'numeroLogradouro', 'errors')}">
                                    <g:textField name="numeroLogradouro" maxlength="5" value="${estabelecimentoInstance?.numeroLogradouro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="bairro"><g:message code="estabelecimento.bairro.label" default="Bairro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'bairro', 'errors')}">
                                    <g:textField name="bairro" maxlength="30" value="${estabelecimentoInstance?.bairro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cep"><g:message code="estabelecimento.cep.label" default="Cep" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'cep', 'errors')}">
                                    <g:textField name="cep" maxlength="8" value="${estabelecimentoInstance?.cep}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="complemento"><g:message code="estabelecimento.complemento.label" default="Complemento" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'complemento', 'errors')}">
                                    <g:textField name="complemento" maxlength="30" value="${estabelecimentoInstance?.complemento}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="ddd"><g:message code="estabelecimento.ddd.label" default="Ddd" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'ddd', 'errors')}">
                                    <g:textField name="ddd" maxlength="2" value="${estabelecimentoInstance?.ddd}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="numeroTelefone"><g:message code="estabelecimento.numeroTelefone.label" default="Numero Telefone" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'numeroTelefone', 'errors')}">
                                    <g:textField name="numeroTelefone" maxlength="8" value="${estabelecimentoInstance?.numeroTelefone}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="numeroFax"><g:message code="estabelecimento.numeroFax.label" default="Numero Fax" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'numeroFax', 'errors')}">
                                    <g:textField name="numeroFax" maxlength="8" value="${estabelecimentoInstance?.numeroFax}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="enderecoEmail"><g:message code="estabelecimento.enderecoEmail.label" default="Endereco Email" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'enderecoEmail', 'errors')}">
                                    <g:textField name="enderecoEmail" value="${estabelecimentoInstance?.enderecoEmail}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="enderecoSite"><g:message code="estabelecimento.enderecoSite.label" default="Endereco Site" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'enderecoSite', 'errors')}">
                                    <g:textField name="enderecoSite" value="${estabelecimentoInstance?.enderecoSite}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="isMatriz"><g:message code="estabelecimento.isMatriz.label" default="Is Matriz" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'isMatriz', 'errors')}">
                                    <g:textField name="isMatriz" value="${fieldValue(bean: estabelecimentoInstance, field: 'isMatriz')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="inscricaoEstadual"><g:message code="estabelecimento.inscricaoEstadual.label" default="Inscricao Estadual" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'inscricaoEstadual', 'errors')}">
                                    <g:textField name="inscricaoEstadual" maxlength="20" value="${estabelecimentoInstance?.inscricaoEstadual}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="inscricaoMunicipal"><g:message code="estabelecimento.inscricaoMunicipal.label" default="Inscricao Municipal" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'inscricaoMunicipal', 'errors')}">
                                    <g:textField name="inscricaoMunicipal" maxlength="20" value="${estabelecimentoInstance?.inscricaoMunicipal}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="isCentralizadorFgts"><g:message code="estabelecimento.isCentralizadorFgts.label" default="Is Centralizador Fgts" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'isCentralizadorFgts', 'errors')}">
                                    <g:textField name="isCentralizadorFgts" value="${fieldValue(bean: estabelecimentoInstance, field: 'isCentralizadorFgts')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="numeroCei"><g:message code="estabelecimento.numeroCei.label" default="Numero Cei" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'numeroCei', 'errors')}">
                                    <g:textField name="numeroCei" maxlength="14" value="${estabelecimentoInstance?.numeroCei}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="opcaoPat"><g:message code="estabelecimento.opcaoPat.label" default="Opcao Pat" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'opcaoPat', 'errors')}">
                                    <g:textField name="opcaoPat" value="${fieldValue(bean: estabelecimentoInstance, field: 'opcaoPat')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="opcaoFiliacaoSindicato"><g:message code="estabelecimento.opcaoFiliacaoSindicato.label" default="Opcao Filiacao Sindicato" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'opcaoFiliacaoSindicato', 'errors')}">
                                    <g:textField name="opcaoFiliacaoSindicato" value="${fieldValue(bean: estabelecimentoInstance, field: 'opcaoFiliacaoSindicato')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="mesDataBase"><g:message code="estabelecimento.mesDataBase.label" default="Mes Data Base" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'mesDataBase', 'errors')}">
                                    <g:textField name="mesDataBase" value="${fieldValue(bean: estabelecimentoInstance, field: 'mesDataBase')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="utilizaArredondamento"><g:message code="estabelecimento.utilizaArredondamento.label" default="Utiliza Arredondamento" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'utilizaArredondamento', 'errors')}">
                                    <g:textField name="utilizaArredondamento" value="${fieldValue(bean: estabelecimentoInstance, field: 'utilizaArredondamento')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="opcao13Salario"><g:message code="estabelecimento.opcao13Salario.label" default="Opcao13 Salario" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'opcao13Salario', 'errors')}">
                                    <g:textField name="opcao13Salario" value="${fieldValue(bean: estabelecimentoInstance, field: 'opcao13Salario')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="opcaoPagamentoSalario"><g:message code="estabelecimento.opcaoPagamentoSalario.label" default="Opcao Pagamento Salario" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'opcaoPagamentoSalario', 'errors')}">
                                    <g:textField name="opcaoPagamentoSalario" value="${fieldValue(bean: estabelecimentoInstance, field: 'opcaoPagamentoSalario')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="uf"><g:message code="estabelecimento.uf.label" default="Uf" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'uf', 'errors')}">
                                    <g:select name="uf.id" from="${ecitys.commons.Uf.list()}" optionKey="id" value="${estabelecimentoInstance?.uf?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="municipio"><g:message code="estabelecimento.municipio.label" default="Municipio" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: estabelecimentoInstance, field: 'municipio', 'errors')}">
                                    <g:select name="municipio.id" from="${ecitys.commons.Municipio.list()}" optionKey="id" value="${estabelecimentoInstance?.municipio?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
